package redlib.backend.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import redlib.backend.annotation.BackendModule;
import redlib.backend.annotation.Privilege;
import redlib.backend.model.Page;
import redlib.backend.service.ContactService;
import redlib.backend.vo.ShowPronvinceVO;

import java.util.List;

@RestController
@RequestMapping("/api/charts")
@BackendModule({"page:页面"})
public class ChartsController {
    @Autowired
    private ContactService contactService;
    @PostMapping("page")
    @Privilege("page")
    public Page<ShowPronvinceVO> list() {
        return contactService.page();
    }


}
